<?php
/*
	插件概览
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['set']=$this->plugin_setting('setting');
	$return['member']=pdo_get('jy_jdk_members',array('uid'=>$_SESSION['uid']));
	$params['uniacid']=$_SESSION['uniacid'];
	$params['mid']=$_SESSION['uid'];
	$params['type']=5;
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$total='';
	$fields=array('id','createtime','money','status');
	$list=pdo_getslice('jy_jdk_member_logs',$params,array($pindex,$psize),$total,$fields,'','id desc');
	if($list){
		foreach($list as &$v){
				
				$v['createtime']=date('Y-m-d H:i:s',$v['createtime']);
			}
		}
		$return['p']=0;
		if($_RQ['p']==1){
			$return['p']=1;	
		}
	$return['list']=$list;
	$return['status']=array('0'=>'生成','1'=>'成功','2'=>'失败');
	$totalpage=ceil($total/$psize);
	$totalpage=intval($totalpage);
	$return['totalpage'] =$totalpage;
	$return['params']['page'] =$pindex;
	
	exi($return);
}
